'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    //登录
    router.post('/api/login',controller.home.login);
    //获取资源
    router.get('/api/reslist',controller.home.reslist);
};

//登录注册
